package net.akkz.dao;

import java.util.ArrayList;

import net.akkz.dbFactory.Session;
import net.akkz.exception.BuildClassError;
import net.akkz.exception.SQLExcuteException;
import net.akkz.model.ImgView;

public interface ImgViewDao
{
	public void addImgView(Session session, ImgView imgView) throws SQLExcuteException;
	
	public ArrayList<ImgView> findImgView(Session session, int start, int end) throws SQLExcuteException, BuildClassError;
	
	public ArrayList<ImgView> findImgViewOrderByGoodNum(Session session, int start, int end) throws SQLExcuteException, BuildClassError;
	
	public ArrayList<ImgView> findImgViewByStudentId(Session session, int studentId) throws SQLExcuteException, BuildClassError;
	
	public ArrayList<ImgView> findAllImgView(Session session, int start, int end) throws SQLExcuteException, BuildClassError;
	
	public ArrayList<ImgView> findAllImgViewOrderByGoodNum(Session session, int start, int end) throws SQLExcuteException, BuildClassError;
	
	public ArrayList<ImgView> findAllImgViewByStudentId(Session session, int studentId) throws SQLExcuteException, BuildClassError;

	
	public ImgView getImgView(Session session, int imgViewid) throws SQLExcuteException, BuildClassError;
	
	public void updateImgViewGood(Session session, ImgView imgView) throws SQLExcuteException;
	
	public void checkImgViewGood(Session session, ImgView imgView) throws SQLExcuteException;
	
	public void deleteImgView(Session session, int imgViewId) throws SQLExcuteException;
}
